package com.gaoyi.crm.db.dao;

import androidx.room.Dao;
import androidx.room.Query;

import com.gaoyi.crm.db.CacheDatabase;
import com.gaoyi.crm.db.entity.HttpCache;

import java.util.List;

@Dao
public abstract class HttpCacheDao extends BaseDao<HttpCache> {

    @Query("SELECT * FROM " + CacheDatabase.TABLE_HTTP_CACHE + " WHERE url = :url AND param = :param")
    public abstract List<HttpCache> getAllCache(String url, String param);
}
